{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>

  Created on 2009-04-08.
  $Id$
-->
{% endcomment %}

<div id="comments_proxy" class="ajax_box">

  <div class="main">
    <span class="ajax_indicator hidden">
      <img src="{{static_}}/images/ajax_indicator.gif" alt="AJAX Indicator"/>
    </span>
  </div>
  
  {% include "foodsnroses/ajax/ajax_error.html" %}

</div><!--/#comments_proxy-->

<script type="text/javascript">//<![CDATA[

  function loadRecentComments() {
    var options = {
      type: "GET",
      url: "{{webapp_}}/resto/{{resto.uid}}/comments/",
      data: {},
      success: function(data) {
        $("#comments_proxy").after(data).remove();
      },
      error: function(xhr, status, exc) {
        $("#comments_proxy .ajax_indicator").hide();
        $("#comments_proxy .ajax_error").show();
      }
    };
    $.ajax(options);
  }
  
  loadRecentComments();

//]]></script>



